package com.onepower.core.modules.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.onepower.core.domain.request.CreateMatchForm;
import com.onepower.core.domain.response.MatchInfo;
import com.onepower.core.modules.repository.entity.TkdMatch;
import com.onepower.core.result.CommonResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 比赛表 服务类
 * </p>
 *
 * @author kin
 * @since 2018-08-16
 */
public interface ITkdMatchService extends IService<TkdMatch> {

    CommonResult createMatch(CreateMatchForm form);

    void updateMatch(CreateMatchForm form);

    void deleteMatch(List<Integer> matchIds);

    String getMatchPullDataUrl(Integer matchId);

    Page<TkdMatch> getList(Integer page, Integer size, Map map);

    MatchInfo getMatchInfo(Integer matchId);
}
